package com.ruoyi.points.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 砍价商品对象 bargain_product
 *
 * @author ruoyi
 * @date 2024-08-05
 */
public class BargainProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String img;

    /** 活动标题 */
    @Excel(name = "活动标题")
    private String name;

    /** 砍价活动简介 */
    @Excel(name = "砍价活动简介")
    private String intro;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 物流方式 */
    @Excel(name = "物流方式")
    private String logisticsMode;

    /** 运费设置的radio */
    @Excel(name = "运费设置的radio")
    private String logisticsSettingType;

    /** 运费设置的值 */
    @Excel(name = "运费设置的值")
    private String logisticsSettingValue;

    /** 砍价总人数 */
    @Excel(name = "砍价总人数")
    private String needAllFrequency;

    /** 每个用户可以帮砍多少次 */
    @Excel(name = "每个用户可以帮砍多少次")
    private String helpBargain;

    /** 每个用户可以兑换的数量限制 */
    @Excel(name = "每个用户可以兑换的数量限制")
    private String canGetNum;

    /** 排序 */
    @Excel(name = "排序")
    private String weight;

    /** 限量总数 */
    @Excel(name = "限量总数")
    private String sillSum;

    /** 限量剩余 */
    @Excel(name = "限量剩余")
    private Long sillNum;

    /** 砍价是否参与分销 */
    @Excel(name = "砍价是否参与分销")
    private String joinYesNo;

    /** 活动状态 */
    @Excel(name = "活动状态")
    private Long status;

    /** 砍价开始价格 */
    @Excel(name = "砍价开始价格")
    private String startPrice;

    /** 砍价最小价格 */
    @Excel(name = "砍价最小价格")
    private String minPrice;

    /** 关联商品表id */
    @Excel(name = "关联商品表id")
    private Long proId;

    /** 关联规格表id */
    @Excel(name = "关联规格表id")
    private Long specificationId;

    /** 关联富文本表id */
    @Excel(name = "关联富文本表id")
    private Long htmlId;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 关联统计表id */
    @Excel(name = "关联统计表id")
    private Long bargainGroupId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setImg(String img)
    {
        this.img = img;
    }

    public String getImg()
    {
        return img;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setIntro(String intro)
    {
        this.intro = intro;
    }

    public String getIntro()
    {
        return intro;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setLogisticsMode(String logisticsMode)
    {
        this.logisticsMode = logisticsMode;
    }

    public String getLogisticsMode()
    {
        return logisticsMode;
    }
    public void setLogisticsSettingType(String logisticsSettingType)
    {
        this.logisticsSettingType = logisticsSettingType;
    }

    public String getLogisticsSettingType()
    {
        return logisticsSettingType;
    }
    public void setLogisticsSettingValue(String logisticsSettingValue)
    {
        this.logisticsSettingValue = logisticsSettingValue;
    }

    public String getLogisticsSettingValue()
    {
        return logisticsSettingValue;
    }
    public void setNeedAllFrequency(String needAllFrequency)
    {
        this.needAllFrequency = needAllFrequency;
    }

    public String getNeedAllFrequency()
    {
        return needAllFrequency;
    }
    public void setHelpBargain(String helpBargain)
    {
        this.helpBargain = helpBargain;
    }

    public String getHelpBargain()
    {
        return helpBargain;
    }
    public void setCanGetNum(String canGetNum)
    {
        this.canGetNum = canGetNum;
    }

    public String getCanGetNum()
    {
        return canGetNum;
    }
    public void setWeight(String weight)
    {
        this.weight = weight;
    }

    public String getWeight()
    {
        return weight;
    }
    public void setSillSum(String sillSum)
    {
        this.sillSum = sillSum;
    }

    public String getSillSum()
    {
        return sillSum;
    }
    public void setSillNum(Long sillNum)
    {
        this.sillNum = sillNum;
    }

    public Long getSillNum()
    {
        return sillNum;
    }
    public void setJoinYesNo(String joinYesNo)
    {
        this.joinYesNo = joinYesNo;
    }

    public String getJoinYesNo()
    {
        return joinYesNo;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setStartPrice(String startPrice)
    {
        this.startPrice = startPrice;
    }

    public String getStartPrice()
    {
        return startPrice;
    }
    public void setMinPrice(String minPrice)
    {
        this.minPrice = minPrice;
    }

    public String getMinPrice()
    {
        return minPrice;
    }
    public void setProId(Long proId)
    {
        this.proId = proId;
    }

    public Long getProId()
    {
        return proId;
    }
    public void setSpecificationId(Long specificationId)
    {
        this.specificationId = specificationId;
    }

    public Long getSpecificationId()
    {
        return specificationId;
    }
    public void setHtmlId(Long htmlId)
    {
        this.htmlId = htmlId;
    }

    public Long getHtmlId()
    {
        return htmlId;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setBargainGroupId(Long bargainGroupId)
    {
        this.bargainGroupId = bargainGroupId;
    }

    public Long getBargainGroupId()
    {
        return bargainGroupId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("img", getImg())
            .append("name", getName())
            .append("intro", getIntro())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("logisticsMode", getLogisticsMode())
            .append("logisticsSettingType", getLogisticsSettingType())
            .append("logisticsSettingValue", getLogisticsSettingValue())
            .append("needAllFrequency", getNeedAllFrequency())
            .append("helpBargain", getHelpBargain())
            .append("canGetNum", getCanGetNum())
            .append("weight", getWeight())
            .append("sillSum", getSillSum())
            .append("sillNum", getSillNum())
            .append("joinYesNo", getJoinYesNo())
            .append("status", getStatus())
            .append("startPrice", getStartPrice())
            .append("minPrice", getMinPrice())
            .append("proId", getProId())
            .append("specificationId", getSpecificationId())
            .append("htmlId", getHtmlId())
            .append("unit", getUnit())
            .append("bargainGroupId", getBargainGroupId())
            .toString();
    }
}
